Utility class to retrieve or compute interesting data about textures. More...
Static Public Member Functions | |
static unsigned int | getFormatByteSize (FORMAT format) |
static unsigned int | getFormatChannelCount (FORMAT format) |
static unsigned int | getFormatPlaneCount (FORMAT format) |
static FORMAT | getFormatSrgbEquivalent (FORMAT format) |
static FORMAT | getFormatRgbEquivalent (FORMAT format) |
static FORMAT | getFormatTypelessEquivalent (FORMAT format) |
static FORMAT | getFormatDepthEquivalent (FORMAT format) |
static FORMAT | getFormatUncompressedEquivalent (FORMAT format) |
static FORMAT | getFormatWithAlphaEquivalent (FORMAT format) |
static bool | isFormatOver255 (FORMAT format) |
static bool | isFormatCompressed (FORMAT format) |
static bool | isFormatCompatibleForRenderFlag (FORMAT format, TEX_RENDER_FLAG renderFlag, BIND_FLAG bindFlag) |
static int | getNeededMipsForSize (int width, int height, int depthOrArraySize) |
Utility class to retrieve or compute interesting data about textures.
|
static |
format | The format to use. |
|
static |
format | The format to use. |
|
static |
format | The format to use. |
format | The format to use. |
format | The format to use. |
format | The format to use. |
format | The format to use. |
format | The format to use. |
format | The format to use. |
|
static |
format | The format to use. |
|
static |
Checks whether a format is compressed. Compressed formats are usually variants of BC and such.
format | The format to use. |
|
static |
format | The format to use. |
renderFlag | The render flag to check against. |
bindFlag | The binding flag forecast for the texture to use. |
|
static |
width | The width of the texture. |
height | The height of the texture. |
depthOrArraySize | The depth, or array size, of the texture. |